﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.NetworkInformation;

namespace Testing.Cons
{
    class Pings
    {
        public void MakePing(string ip)
        {
            Ping x = new Ping();
            PingReply reply = x.Send(IPAddress.Parse(ip));

            if (reply.Status == IPStatus.Success)
                Console.WriteLine("Address is accessible");
        }
    }
}
